package com.accesshollywood.grfxOrdering.orderTreeSpecial.models;

import javax.swing.table.AbstractTableModel;

import com.accesshollywood.indexables.GrfxOrder;

public class TextTableModel extends AbstractTableModel {
	protected String[]	columnNames	= { "TEXT" };
	protected GrfxOrder data;

	public TextTableModel(GrfxOrder grfxOrderGroup) {
		this.data = grfxOrderGroup;
	}

	@Override
	public int getColumnCount() {
		return columnNames.length;
	}

	@Override
	public int getRowCount() {
		return 1;//data.length;
	}

	@Override
	public String getColumnName(int col){
		return columnNames[col];
	}

	@Override

	public Object getValueAt(int row, int column) {
		Object result = null;
		GrfxOrder currOrder = (GrfxOrder)data;
		switch(column){
		case 0:
			result = "Text goes here.";//currOrder.idOrder;
			break;
		}
		return result;
    }
}
